<script setup>
import {provide, ref} from "vue";
import B from "@/ComponentCommunication/07-provide与inject/B.vue";

let a = ref(0)
// 向后代提供数据
provide('a', a)
</script>

<template>
  <B/>
</template>

<style scoped>

</style>